xquery version "0.9-ml"

default element namespace="http://www.w3.org/1999/xhtml"
declare namespace id="http://localhost/ns/ox/id"

xdmp:document-insert("id.xml",

<id xmlns="http://localhost/ns/ox/id">
	<wineid>10000</wineid>
</id>
),
<html>
<head>
<title>ID Database Loaded</title>
</head>
<body>
<b>ID Source XML Loaded</b>
<xmp>
{doc("id.xml")}
</xmp>
</body>
</html>